package cn.java.basic;

public class Operator
{

    public static void main(String[] args)
    {
        int result;

        result=(3+-4)*5-6;
        System.out.println("(3+-4)*5-6="+result);
        result=(3+-4)-6*5;
        System.out.println("(3+-4)-6*5="+result);

        int a=1;
        boolean bResult;
        bResult=(true|(++a == 1))&(a == 2);
        System.out.println("(true|(++a == 1))&(a == 2)="+bResult);
        bResult=(true||(++a == 1))&(a == 1);
        System.out.println("(true||(++a == 1))&(a == 2)="+bResult);

    }

}
